package gcs

import (
	"os"
	"publiclib/cryptoutil/libsp"
)

var (
	sp *libsp.ConfFiledSp
)

const (
	ENV_ORIGIN_CODE = "ORIGIN_CODE"
)

func Sp() *libsp.ConfFiledSp {
	if sp == nil {
		originCode := os.Getenv(ENV_ORIGIN_CODE)
		sp = libsp.NewConfFiledSp([]byte(originCode))
	}
	return sp
}
